babl: remove unused babl_space_get_chromaticities
authorØyvind Kolås <pippin@gimp.org>
Sat, 26 Aug 2017 16:56:12 +0000 (18:56 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sat, 26 Aug 2017 16:56:12 +0000 (18:56 +0200)
babl/babl-internal.h
babl/babl-space.c

index 9ba8a85674cb7114cf2eb8cab1d1f4a277d867e7..e50fd916fc33bf1d3b062080b745ec2949edd6df 100644 (file)
@@ -343,18 +343,6 @@ double babl_trc_to_linear   (const Babl *trc, double value);
 float babl_trc_from_linearf (const Babl *trc, float value);
 float babl_trc_to_linearf   (const Babl *trc, float value);
 
-/**
- * babl_space_get_chromaticities:
- *
- * Returns the CIE xyY chromaticity values for white point and primaries for a
- * space.
- */
-void babl_space_get_chromaticities  (const Babl *space,
-                                     double *wx, double *wy,
-                                     double *rx, double *ry,
-                                     double *gx, double *gy,
-                                     double *bx, double *by);
-
 const Babl *
 babl_trc_new (const char *name,
               BablTRCType type,
index cd7c4e276e8e3fd455d07526d1ecd5399f0a2cd0..9481d9c348eafe94511febe61a805174db5a2b45 100644 (file)
@@ -22,6 +22,8 @@
 #include "babl-internal.h"
 #include "base/util.h"
 
+
+
 static BablSpace space_db[MAX_SPACES];
 
 static void babl_chromatic_adaptation_matrix (const double *whitepoint,
@@ -112,27 +114,6 @@ static void babl_space_compute_matrices (BablSpace *space)
   memcpy (space->XYZtoRGB, mat, sizeof (mat));
 }
 
-void
-babl_space_get_chromaticities (const Babl *space,
-                               double *xw, double *yw,
-                               double *xr, double *yr,
-                               double *xg, double *yg,
-                               double *xb, double *yb)
-{
-  if (!space)
-    return;
-
-  if (xw) *xw = space->space.xw;
-  if (yw) *yw = space->space.yw;
-
-  if (xr) *xr = space->space.xr;
-  if (yr) *yr = space->space.yr;
-  if (xg) *xg = space->space.xg;
-  if (yg) *yg = space->space.yg;
-  if (xb) *xb = space->space.xb;
-  if (yb) *yb = space->space.yb;
-}
-
 const Babl *
 babl_space (const char *name)
 {